package demo6;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test1 {
    public static void main(String[] args) {
        String user="spring_di.xml";
       ApplicationContext c = new ClassPathXmlApplicationContext(user);
        Person bean = c.getBean(Person.class);
        bean.sayHi();
        bean.Goto();

    }
}
